package org.dromara.common.translation.core.impl.xhlj;

import lombok.AllArgsConstructor;

import org.dromara.common.core.service.xhlj.XhljActivityTaskTranslationService;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.annotation.TranslationType;
import org.dromara.common.translation.core.impl.SimpleTranslationImpl;

@AllArgsConstructor
@TranslationType(type = "xhlj_activityTask_vo")
public class XhljActivityTaskTranslationImpl extends SimpleTranslationImpl {


    private final XhljActivityTaskTranslationService translationService ;

    @Override
    public Object translation(Object key, Translation translation) {
        if(key instanceof Integer id ) {
            return translationService.selectVoById(id);
        }

        return null;
    }
}
